Configure the CData JDBC Driver for SQL Server in a Connection Pool in Tomcat

您所在的位置:网站首页 tomcat connected to server Configure the CData JDBC Driver for SQL Server in a Connection Pool in Tomcat

Configure the CData JDBC Driver for SQL Server in a Connection Pool in Tomcat

2023-12-02 23:15| 来源: 网络整理| 查看: 265

Add a definition of the resource to the context. Specify the JDBC URL here. Connecting to Microsoft SQL Server

Connect to Microsoft SQL Server using the following properties:

Server: The name of the server running SQL Server. User: The username provided for authentication with SQL Server. Password: The password associated with the authenticating user. Database: The name of the SQL Server database. Connecting to Azure SQL Server and Azure Data Warehouse

You can authenticate to Azure SQL Server or Azure Data Warehouse by setting the following connection properties:

Server: The server running Azure. You can find this by logging into the Azure portal and navigating to "SQL databases" (or "SQL data warehouses") -> "Select your database" -> "Overview" -> "Server name." User: The name of the user authenticating to Azure. Password: The password associated with the authenticating user. Database: The name of the database, as seen in the Azure portal on the SQL databases (or SQL warehouses) page. Built-in Connection String Designer

For assistance in constructing the JDBC URL, use the connection string designer built into the SQL Server JDBC Driver. Either double-click the JAR file or execute the jar file from the command-line.

java -jar cdata.jdbc.sql.jar

Fill in the connection properties and copy the connection string to the clipboard.

You can see the JDBC URL specified in the resource definition below.

To allow a single application to access SQL Server data, add the code above to the context.xml in the application's META-INF directory.

For a shared resource configuration, add the code above to the context.xml located in $CATALINA_BASE/conf. A shared resource configuration provides connectivity to SQL Server for all applications.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3